home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Magnum One
/
Magnum One (Mid-American Digital) (Disc Manufacturing).iso
/
d12
/
cc02.arc
/
FLOORM.C
< prev
next >
Wrap
Text File
|
1986-03-14
|
896b
|
41 lines
/* determine current load address and system memory size */
#include "ctype.h"
#include "stdio.h"
main()
{
int msegm,mz; /* load point and mem size */
int msize(); /* system memory size */
int ourseg(); /* our code segment value */
int nkb; /* # kb remaining */
int getc();
clrscrn(); /* clear screen */
poscrsr(0,0); /* cursor upper left */
mz = msize(); /* get size first */
msegm = ourseg(); /* get our segment now */
nkb = mz - msegm / 64; /* convert remaining to k from segs */
printf("Load point is %x0 Hex \n",msegm);
printf("Current memory size is %d K bytes \n",mz);
printf("%d K bytes available\n",nkb);
printf("Do you also need disk info ?\n");
if (toupper(getchar()) == 'Y') diskinfo();
printf("Exiting to System\n");
}
ourseg()
{
#asm
mov ax,cs
#endasm
}
diskinfo()
{
}